package com.logica.tutorial.dao;

import java.util.Collection;

import com.logica.tutorial.model.Person;
import com.logica.tutorial.model.Sex;

public interface PersonDAO {
	Collection<Person> findPersonsByFirstName(String firstName);
	Collection<Person> findPersonsInCity(String city);
	void changeNameByID(Long idOfPersonToChange, String newFirstName, String newLastName);
	long getNrOfPersons();
	Collection<Person> findAllPersonsOfSex(Sex sex);
	Collection<Person> findAllPersonsWithoutChildren();
	Collection<Person> findPersonsWhereLastNameStartsWith(char character);
	void addPerson(Person person);	
	void removePerson(Person person);
	boolean isIdInUse(Long personId);
	Collection<Person> findAllPersons();
	Collection<Person> findPerson(Person personToFind);
	Person getPersonById(Long id);
}
